Skip to content

[ADD] real_estate, *: add complete real estate management module #839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 9 commits into
base: 18.0
Choose a base branch
from

Conversation

metu-odoo
Copy link

@metu-odoo metu-odoo commented Jul 9, 2025

  • = estate_account

This branch introduces a complete Real Estate management module to handle
property listings, offers, access control, invoicing, and website integration.
Key Features:

Property Management: Configure and manage estate properties with clean form and list views.
Offer Handling: Enable offer submission with business validations and acceptance
workflows.
Access Control: Define model-level access and permissions for real estate roles.
Website Integration: Display listings and allow users to submit offers online.
Accounting: Seamlessly integrate with invoicing through the
estate_account module
Standards Compliance: Includes test coverage and follows Odoo best practices.

This module offers an end-to-end Real Estate solution within the Odoo ecosystem.

Created the initial file architecture for the real_estate module,
including the necessary directories and manifest file.

Implemented the estate.property model using Odoo ORM to
define the database table structure required for storing property-related data.

This commit sets up the foundation for the module, making it ready for
further development of features such as property management, views,
and business logic.
@robodoo
Copy link

robodoo commented Jul 9, 2025

Pull request status dashboard

@metu-odoo metu-odoo marked this pull request as draft July 9, 2025 09:02
@metu-odoo metu-odoo force-pushed the 18.0-training-metu branch from ab10458 to 7a4879a Compare July 10, 2025 04:54
Copy link

@maad-odoo maad-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First pass ... 🚀 ,
Not in depth technical review.

  • The PR title is not appropriate. The PR title should be describe more about why the
    PR is made on the first place.
  • The diff contains alot of unnecessary diff.

Please adapt this change and do not leave unnecesary diffs 🙏
Thank you 🙂

Contains a lot of unnecessary diff which is not required.

@@ -0,0 +1 @@
from . import models

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing licensing info

Applies throughout the diff

Copy link
Author

@metu-odoo metu-odoo Jul 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-- coding: utf-8 --
Part of Odoo. See LICENSE file for full copyright and licensing details.
sir do you mean this ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

runbot is failing because of these lines

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will be failing because of encode declaration and not for the licensing part.
you can remove the encoding part and keep the licensing part

@metu-odoo metu-odoo changed the title 18.0 training metu [ADD] estate: add complete real estate management module Jul 10, 2025
@metu-odoo metu-odoo changed the title [ADD] estate: add complete real estate management module [ADD] real_estate: add complete real estate management module Jul 10, 2025
@metu-odoo metu-odoo force-pushed the 18.0-training-metu branch 3 times, most recently from 64b8a3e to 5c94fc5 Compare July 10, 2025 12:35
@metu-odoo
Copy link
Author

metu-odoo commented Jul 10, 2025 via email

@metu-odoo metu-odoo force-pushed the 18.0-training-metu branch from 5c94fc5 to b02961b Compare July 10, 2025 12:51
@metu-odoo metu-odoo changed the title [ADD] real_estate: add complete real estate management module [ADD] real_estate, *: add complete real estate management module Jul 14, 2025
@metu-odoo metu-odoo force-pushed the 18.0-training-metu branch 2 times, most recently from 2f19925 to 683746d Compare July 15, 2025 13:35
Purpose:
Restrict model access and enhance user interaction.

Approach:
Defined access rights via `ir.model.access.csv`; created list, form
and search views with key fields.

Impact:
Users see only permitted records and can easily view, search, and manage
properties through a structured UI.
@metu-odoo metu-odoo force-pushed the 18.0-training-metu branch from 683746d to 4d069f8 Compare July 16, 2025 10:52
…uttons

Purpose:
Improve data linkage, automate values, and streamline user actions.

Approach:
- Linked models via One2many, Many2one, and Many2many fields.
- Added computed fields like best_offer and offer_deadline.
- Used onchange for reactive UI updates.
- Added buttons for actions: Sold/Cancel (property), Accept/Refuse (offer).

Impact:
Simplifies workflows, ensures data consistency, and improves overall usability.
…ttons

- Added inline views, statusbar, widget options
- Set SQL & Python constraints for data validity
- Defined default ordering for all models
- Conditional button visibility & field behaviors
- Editable/color-coded list views with decorations
- Stat button for offer count on property type
Purpose:
Introduce a separate module to handle property invoicing and commissions.

Approach:
Created `estate_account` module with billing logic, including fixed admin fees
and percentage-based commissions.

Impact:
Enables optional, reusable invoicing integration for real_estate without
polluting core logic.
Purpose:
Make the code cleaner and more secure.

Approach:
- Renamed methods and variables to follow Odoo naming rules.
- Avoided unsafe public methods and direct field access.

Impact:
Code is easier to read, safer to use, and follows Odoo guidelines.
Purpose:
Control user access, support testing, and improve communication.

Approach:
- Added 'Agent' and 'Manager' groups with role-based access.
- Used groups to control field/button visibility.
- Loaded demo data for testing and training.
- Enabled chatter for tracking messages and changes.

Impact:
Improves security, speeds up development, and adds better collaboration tools.
…ontent

Purpose:
Generate useful reports for properties, offers, and sellers.

Approach:
- Added offer report to property print menu with conditional content.
- Moved offer table to a reusable sub-template.
- Created seller report with related offers.
- Extended property report to include invoice details when sold.

Impact:
Provides clear, flexible reporting for users with reusable templates.
Purpose:
Prevent invalid property sales/offers and fix garden field issues.

Approach:
- Blocked offers on sold properties and sales without accepted offers.
- Fixed garden reset to retain area and orientation when unchecked.

Impact:
Eliminates user confusion and ensures consistent  UI behavior.
@metu-odoo metu-odoo force-pushed the 18.0-training-metu branch from 4d069f8 to c58a63b Compare July 16, 2025 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants